﻿/**
 * 引用：MqHelper
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MQHelper;

namespace Product
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("生产者");
            //// 创建消息bus

            while (true)
            {
                MqManage.Publish(new MyMessage
                {
                    MessageId = "2",
                    MessageRouter = "ro2",
                    MessageBody = "当前时间=" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
                    MessageTitle = "title" + DateTime.Now
                });

                Thread.Sleep(3000);
            }
        }
    }
}
